package com.key.mapper;

import com.key.common.dto.AssetFCAdvDTO;
import com.key.common.dto.AssetFCDTO;
import com.key.common.vo.*;
import com.key.entity.AssetFinanceChange;

import java.util.List;
import java.util.Map;

/*
*
 * @description:财务信息变更Mapper
 * @author: jianjiawei
 * @date: 2023/2/21 14:27
 **/
public interface AssetFinanceChangeMapper {
    /*
    *
     * @description:查询最后一条变更信息
     * @author: jianjiawei
     * @date: 2023/2/21 14:26
     **/
    AssetFinanceChange selectLastOne();

    /*
    *
     * @description:根据变更单号查询
     * @author: jianjiawei
     * @date: 2023/2/24 14:10
     **/
    AssetFinanceChange selectByChangeNo(String changeNo);
    
    /*
    *
     * @description:添加新的财务信息变更
     * @author: jianjiawei 
     * @date: 2023/2/21 17:50
     **/
    int insertAssetFinanceChange(AssetFCDTO fcDTO);

    /*
    *
     * @description:查询所有财务信息变更
     * @author: jianjiawei
     * @date: 2023/2/21 18:33
     **/
    List<AssetFCVO> selectAssetFinanceChangeList();

    /*
    *
     * @description:根据ID查询财务信息变更
     * @author: jianjiawei
     * @date: 2023/2/21 18:43
     **/
    AssetUpdateFCVO selectAssetFinanceChangeById(Integer id);

    /*
    *
     * @description:修改财务信息变更
     * @author: jianjiawei
     * @date: 2023/2/21 19:27
     **/
    int updateAssetFinanceChange(AssetFCDTO dcDTO);

    /*
    *
     * @description:修改对应的资产信息
     * @author: jianjiawei
     * @date: 2023/2/21 19:36
     **/
    int updateAssetsByFinanceChange(Map map);

    /*
    *
     * @description:删除财务信息变更
     * @author: jianjiawei
     * @date: 2023/2/21 19:02
     **/
    int deleteFinanceChangeById(Integer id);

    /*
    *
     * @description:根据高级搜索查询财务变更信息数据
     * @author: jianjiawei
     * @date: 2023/2/22 8:54
     **/
    List<AssetFCVO> selectAssetFinanceChangeByAdv(AssetFCAdvDTO advDTO);

    /*
    *
     * @description:
     * @author: jianjiawei
     * @date: 2023/2/27 16:47
     **/
    FCAssetsVO selectAssetsById(Long id);

    List<AssetFinanceChange> selectAll();










}
